package cn.acfda.service;

import cn.acfda.po.Type;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author ziye
 * @date 2020/12/5 11:44
 */
public interface TypeService {
    Type saveType(Type type);

    void deleteType(Long id);

    Type updateType(Long id, Type type);

    Type getType(Long id);

    Type getTypeByName(String name);

    List<Type> listType();

    List<Type> listTypeTop(Integer size);


    Page<Type> listType(Pageable pageable);

}
